//
//  LGQuickSellViewController.m
//  LuxuryGoods
//
//  Created by 刘星辰 on 2018/5/21.
//  Copyright © 2018年 Future. All rights reserved.
//

#import "LGQuickSellViewController.h"
#import "LGCommissionViewController.h"
#import "LGRecycleViewController.h"

@interface LGQuickSellViewController ()
@property (weak, nonatomic) IBOutlet UILabel *jiMaiLab;
@property (weak, nonatomic) IBOutlet UILabel *huiShouLab;

@end

@implementation LGQuickSellViewController


- (void)viewDidDisappear:(BOOL)animated
{
    [super viewDidDisappear:animated];
    [self.tabBarController.tabBar setHidden:NO];
}
- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    [self.tabBarController.tabBar setHidden:YES];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.jiMaiLab.text = @"123123123123112312312312311231231231231123123123123112312312312311231231231231";
    self.huiShouLab.text = @"123123123123112312312312311231231231231123123123123112312312312311231231231231";
}

//寄卖
- (IBAction)jiMaiAction:(id)sender
{
    if (self.gotoAciton)
    {
        LGCommissionViewController *vc = [[LGCommissionViewController alloc] initWithNibName:@"LGCommissionViewController" bundle:nil];
        [self popOrDismiss];
        self.gotoAciton(vc);
    }
    
}

//回收
- (IBAction)huiShouAction:(id)sender
{
    if (self.gotoAciton)
    {
            LGRecycleViewController *vc = [[LGRecycleViewController alloc] initWithNibName:@"LGRecycleViewController" bundle:nil];
        [self popOrDismiss];
        self.gotoAciton(vc);
    }
}
//关闭
- (IBAction)closeAction:(id)sender
{
    if (self.closeAction)
    {
        [self popOrDismiss];
        self.closeAction(self);
    }
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
